<?
  require_once("connection.php");
  error_reporting(0);
?>
	<script type="text/javascript">
	jQuery(document).ready(function(){
		jQuery('.mydatepicker').datepicker({
			dateFormat : 'yy-mm-dd'
		});
	});
	</script>
<table>
  <tbody>
    <tr>
      <td>You are about to copy: </td>
      <?
        $query = "select * from g_courses where course_id=".$_POST["course_id"].";";
        $result =@mysql_query($query);
        $row = @mysql_fetch_array($result);
        echo "<td><input id='name' value='".$row["name"]." - ".$row["year"]." ".$row["semester"]."' type='text' size='40' maxlength='100' disabled/></td>";
      ?>
    </tr>
    <tr>
      <td>starting date</td>
      <?
        echo "<td><input class='mydatepicker' id='starting_date' type='text' size='40' maxlength='10'/></td>";
      ?>
    </tr>
    <tr>
      <td>&nbsp</td>
      <td align="right">
      <?
        echo "<button onclick='display_table(1,0);return false;'>Back</button>";
        echo "<button onclick='save_copy_course(".$_POST["course_id"].");return false;'>Copy</button>";
      ?>
      </td>
    </tr>
  </tbody>
</table>
